OUTPUT TO c:\qadguicli\sys_cost.xls.

FOR EACH sct_det WHERE sct_sim = "standard" AND sct_site = "220" AND sct_cst_tot <> 0 NO-LOCK BREAK BY sct_part:

    FIND FIRST pc_mstr WHERE pc_part = sct_part NO-LOCK NO-ERROR.
    IF AVAILABLE pc_mstr THEN
       FIND FIRST ad_mstr WHERE ad_addr = pc_list NO-LOCK NO-ERROR.

    DISP sct_part sct_cst_tot 
         pc_list WHEN (AVAILABLE pc_mstr)
         ad_taxc WHEN (AVAILABLE ad_mstr)
    WITH STREAM-IO WIDTH 200.
    
END.
